<%--
  Created by IntelliJ IDEA.
  User: liuchang
  Date: 2021/8/19
  Time: 17:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script src="js/jquery-1.11.1.js"></script>
    <script src="js/bootstrap.js"></script>
    <link rel="stylesheet" href="css/bootstrap.css" />
    <link rel="stylesheet" href="css/bootstrap-theme.css" />
</head>
<body>
    <table class="table table-bordered table-striped">
        <thead>
            <tr>
                <td>商品名称</td>
                <td>商品价格</td>
                <td>商品销量</td>
            </tr>
        </thead>
        <tbody>
            <c:forEach items="${requestScope.commodities}" var="commodity">
                <tr>
                    <td>${commodity.commodityName}</td>
                    <td>${commodity.commodityPrice}</td>
                    <td>${commodity.commoditySale}</td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
</body>
</html>
